<template>
  <div id="app">
    <img alt="Vue logo" src="./assets/logo.png" />
    <input type="text" v-model="text" />
    <HelloWorld v-model="text" />
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

export default {
  name: 'App',
  components: { HelloWorld },
  data() {
    return {
      text: ''
    }
  }
}
</script>

<style>
#app {
  display: flex;
  flex-direction: column;     
  align-items: center;        
  justify-content: flex-start;
  min-height: 100vh;
  padding: 40px 20px;
  box-sizing: border-box;
  font-family: 'Segoe UI', Avenir, Helvetica, Arial, sans-serif;
  background-color: #fff;
  color: #2c3e50;
}

#app img {
  width: 100px;
  margin-bottom: 30px;
}

#app input[type="text"] {
  width: 300px;
  max-width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#app input[type="text"]:focus {
  border-color: #42b983;
  box-shadow: 0 0 0 3px rgba(66, 185, 131, 0.2);
}

.hello {
  width: 100%;
  max-width: 400px;
}
</style>